package xm.erzhan.models;

import javax.persistence.*;
import javax.xml.soap.Text;
import java.math.BigInteger;
import java.util.HashMap;

@Entity
@Table(name = "Resource", schema = "", catalog = "")
public class ResourceEntity {

    private int id;
    private int playerId;
    private String name;
    private String resourceMap;
    private String productPowerMap;
    private int population;
    private int populationSurplus;
    private String officer;
    private String army;
    private String buildingsMap;
    private int indorsationCount;
    private int complaintCount;
    private int tax;
    private String cityDefense;
    private double localY;
    private double localX;
    private String resourceBuildingsMap;
    private Long lastUpdateTime;


    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    @Basic
    @Column(name = "playerId", nullable = false, insertable = true, updatable = true)
    public int getPlayerId() {
        return playerId;
    }

    public void setPlayerId(int playerId) {
        this.playerId = playerId;
    }


    @Basic
    @Column(name = "resourceMap", nullable = true, insertable = true, updatable = true, length = 2500)
    public String getResourceMap() {
        return resourceMap;
    }

    public void setResourceMap(String resourceMap) {
        this.resourceMap = resourceMap;
    }


    @Basic
    @Column(name = "productPowerMap", nullable = true, insertable = true, updatable = true, length = 2500)
    public String getProductPowerMap() {
        return productPowerMap;
    }

    public void setProductPowerMap(String productPowerMap) {
        this.productPowerMap = productPowerMap;
    }


    @Basic
    @Column(name = "name", nullable = false, insertable = true, updatable = true)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Basic
    @Column(name = "population", insertable = true, updatable = true)
    public int getPopulation() {
        return population;
    }

    public void setPopulation(int population) {
        this.population = population;
    }



    @Basic
    @Column(name = "populationSurplus", insertable = true, updatable = true)
    public int getPopulationSurplus() {
        return populationSurplus;
    }

    public void setPopulationSurplus(int populationSurplus) {
        this.populationSurplus = populationSurplus;
    }



    @Basic
    @Column(name = "officer", insertable = true, updatable = true, length = 2500)
    public String getOfficer() {
        return officer;
    }

    public void setOfficer(String officer) {
        this.officer = officer;
    }



    @Basic
    @Column(name = "army", insertable = true, updatable = true, length = 2500)
    public String getArmy() {
        return army;
    }

    public void setArmy(String army) {
        this.army = army;
    }



    @Basic
    @Column(name = "buildingsMap", insertable = true, updatable = true, length = 2500)
    public String getBuildingsMap() {
        return buildingsMap;
    }

    public void setBuildingsMap(String buildingsMap) {
        this.buildingsMap = buildingsMap;
    }



    @Basic
    @Column(name = "indorsationCount", insertable = true, updatable = true)
    public int getIndorsationCount() {
        return indorsationCount;
    }

    public void setIndorsationCount(int indorsationCount) {
        this.indorsationCount = indorsationCount;
    }



    @Basic
    @Column(name = "complaintCount", insertable = true, updatable = true)
    public int getComplaintCount() {
        return complaintCount;
    }

    public void setComplaintCount(int complaintCount) {
        this.complaintCount = complaintCount;
    }



    @Basic
    @Column(name = "tax", insertable = true, updatable = true)
    public int getTax() {
        return tax;
    }

    public void setTax(int tax) {
        this.tax = tax;
    }



    @Basic
    @Column(name = "cityDefense", insertable = true, updatable = true, length = 2500)
    public String getCityDefense() {
        return cityDefense;
    }

    public void setCityDefense(String cityDefense) {
        this.cityDefense = cityDefense;
    }



    @Basic
    @Column(name = "localY", insertable = true, updatable = true)
    public double getLocalY() {
        return localY;
    }

    public void setLocalY(double localY) {
        this.localY = localY;
    }



    @Basic
    @Column(name = "localX", insertable = true, updatable = true)
    public double getLocalX() {
        return localX;
    }

    public void setLocalX(double localX) {
        this.localX = localX;
    }




    @Basic
    @Column(name = "resourceBuildingsMap", insertable = true, updatable = true)
    public String getResourceBuildingsMap() {
        return resourceBuildingsMap;
    }

    public void setResourceBuildingsMap(String resourceBuildingsMap) {
        this.resourceBuildingsMap = resourceBuildingsMap;
    }



    @Basic
    @Column(name = "lastUpdateTime", insertable = true, updatable = true)
    public Long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Long lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

}
